/**
 *  Copyright 2011 Pavlov Dm.
 *  Licensed under the MIT License
 */
 
package org.motiv.tests.objects;

import java.io.Serializable;

/**
 * A test object for cache
 * @author Pavlov Dm
 */ 
 
public class TestObject implements Serializable{
	/** Object id*/
	private long iid;
	/** Object name*/
	private String name;
	/**
	* Class constructor. 
	*/
	public TestObject(){
		this.iid = 0L;
		this.name = "";
	}
	/**
	* Class constructor. 
	* @param iid Object id
	* @param name Object name
	*/
	public TestObject(long iid,String name){
		this.iid = iid;
		this.name = name;
	}
	/**
	* Get object id
	* @return Object id
	*/
	public long getId(){
		return iid;
	}
	/**
	* Set object id
	* @param iid Object id
	*/
	public void setId(long iid){
		this.iid = iid;
	}
	/**
	* Set object name method. 
	* @param name Object name
	*/
	public void setName(String name){
		this.name = name;
	}
	/**
	* Get object name. 
	* @return Object name
	*/
	public String getName(){
		return name;
	}
}